package com.zkj.mapper;

import com.zkj.entity.ShoppingCart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 购物车 Mapper 接口
 * </p>
 *
 * @author zkj
 * @since 2024-08-22
 */
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

    /**
     * 查询购物车中是否存在该商品
     * @param shoppingCart
     * @return
     */
    List<ShoppingCart> existShoppingCartList(ShoppingCart shoppingCart);

}
